package com.xingfudazi.app.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author YuJiaMing
 * date 2023年11月14日 16:27
 */
@Data
@ApiModel(value = "转账相关对象")
public class TransferDTO {

    /**
     * 目标用户
     */
    @NotNull(message = "转账目标不为空")
    @ApiModelProperty(value = "目标对象", required = true)
    private String to;

    /**
     * 价格
     */
    @NotNull(message = "额度不为空")
    @ApiModelProperty(value = "额度", required = true)
    @Min(value = 1, message = "最小茶能额度为1")
    private Integer value;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", required = false)
    private String remark;

}
